﻿using NUnit.Framework;
using Vk.Methods.Messages;
using Vk.Methods.News;

namespace UnitTests
{
    [TestFixture]
    public class NewsfeedTests : TestsBase
    {
        [Test]
        public void GetTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("Get"));
        }

        [Test]
        public void GetRecommendedTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetRecommended"));
        }

        [Test]
        public void GetCommentsTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetComments"));
        }

        [Test]
        public void GetMentionsTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetMentions"));
        }

        [Test]
        [ExcludeParameters("fields", "nameCase")]
        [HasExtendedVersion]
        public void GetBannedTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetBanned"));
        }

        [Test]
        public void AddBanTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("AddBan"));
        }

        [Test]
        public void DeleteBanTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("DeleteBan"));
        }

        [Test]
        public void IgnoreItemTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("IgnoreItem"));
        }

        [Test]
        public void UnignoreItemTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("UnignoreItem"));
        }

        [Test]
        [ExcludeParameters("fields")]
        [HasExtendedVersion]
        public void SearchTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("Search"));
        }

        [Test]
        public void GetListsTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetLists"));
        }

        [Test]
        public void SaveListTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("SaveList"));
        }

        [Test]
        public void DeleteListTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("DeleteList"));
        }

        [Test]
        public void UnsubscribeTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("Unsubscribe"));
        }

        [Test]
        public void GetSuggestedSourcesTest()
        {
            IsSignatureUpdated(typeof(News).GetMethod("GetSuggestedSources"));
        }
    }
}